<%--
  Created by IntelliJ IDEA.
  User: John Cage
  Date: 2020/11/14
  Time: 9:30
  To change this template use File | Settings | File Templates.
--%>
<%@ include file="../common/IncludeTop.jsp"%>

    <div id="BackLink">
        <a href="main">
            Return to Main Menu
        </a>
    </div>

    <div id="Catalog">
        <table>
            <tr>
                <th id="productID">Product ID</th>
                <th id="Name">Name</th>
            </tr>
            <c:forEach var="product" items="${sessionScope.productList}">
                <tr>
                    <td>
                        <b>
                            <a href="viewProduct?productId=${product.productId}">${product.productId}</a>
                        </b>
                    </td>
                    <td>${product.name}</td>
                </tr>
            </c:forEach>
            <!--空-->
            <tr>
                <td></td>
            </tr>
        </table>

    </div>

<%@ include file="../common/IncludeBottom.jsp"%>